﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width"  />
    <title>报表</title>
    @FastReport.Web.WebReportGlobals.ScriptsWOjQuery()
    @FastReport.Web.WebReportGlobals.StylesWOjQuery() 
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false) 
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div class="navbar-collapse collapse" id="ERP_TopMenu">
                <!--顶部菜单-->
            </div>
        </div>
    </div>
    <div class="form-inline" style="padding:10px;">
        @ViewBag.WebReport.GetHtml()
        @*自动打印函数*@
        @if (ViewBag.AutoPrint == true)
        {
            <script type="text/javascript">
            var print = setInterval("startRequest()", 300);

            function startRequest() {
                if ($("input[name='print_pdf']").length > 0) {
                    clearInterval(print);

                    $("input[name='print_pdf']").click();
                    window.close();
                }
            }
            </script>
        }

        @RenderBody()
    </div>
     
    <script src="~/Scripts/Erp/defineDataTable.js"></script> 
</body>

</html>
